<head>
	<title>CI Gallery</title>
	<meta charset="UTF-8">
	<style type="text/css">
		#gallery, #upload {
			border: 1px solid #ccc; margin: 10px auto; width: 570px; padding: 10px;
		}
		#blank_gallery {
			font-family: Arial; font-size: 18px; font-weight: bold;
			text-align: center;
		}
		.thumb {
			float: left; width: 150px; height: 100px; padding: 10px; margin: 10px; background-color: #ddd;
		}
		.thumb:hover {
			outline: 1px solid #999;
		}
		img {
			border: 0;
		}
		#gallery:after {
			content: "."; visibility: hidden; display: block; clear: both; height: 0; font-size: 0;
		}
	</style>
</head>
<body>
	<div id="gallery">
			<div class="thumb">
			        <?php
			        if(!$is_avatar_exists): ?>
					<img src="<?php echo $gallery_path_url; ?>" />
					<?php endif; ?>		
			</div>
			<div id="blank_gallery">Please Upload an Image</div>
	</div>
	
	<div id="upload">
		<?php
		echo form_open_multipart('user_controller/edit_profile?action=upload');
		echo form_upload('userfile');
		echo form_submit('upload', 'Upload');
		echo form_close();
		?>		
	</div>
	<?php echo anchor('homepage/index', 'click here to homepage');  ?>
</body>
<!-- photo related  -->

<div data-role="content" data-scroll="y">
<div data-iscroll="scroller">

<?php echo validation_errors('<p class="error">'); ?>

<?php echo form_open('user_controller/edit_profile');?>
<label for="title">Full Name:</label>
<input type=text name="fullname" value="<?=$rows->fullname?>">
<br>
<label for="email">Email</label>
<h4><?=$rows->email?></h4>
<br>
<label for="location">Current Location:</label>
<input type=text name="location" value="<?=$rows->location?>">
<br>
<label for="birthdate">Birthday:</label>
<input name="birthdate" id="birthdate" type="date" value="<?="$rows->birthdate"?>" data-role="datebox"data-options='{"mode": "flipbox"}'>
<br>
<!-- 
<label for="username">Username:</label>
<input type=text name="username" value="<?=$rows->username?>">
<br>
-->
<label for="interest">Gender:</label><br>
<table border=0>
<tr>
<?php if($rows->gender==0):?>
<td><input type="radio" name="gender" value="0" checked/> 
<td><input type="radio" name="gender" value="1" /> 
<?php else:?>
<td><input type="radio" name="gender" value="0" /> 
<td><input type="radio" name="gender" value="1" checked/> 
<?php endif;?>
<tr>
<td>Male
<td>Female
</table>

<table>
<tr>
<td> hello application email notification
<td> <br/><input type="checkbox" name="email_option1"  value=ture  <?=$email_option1?"checked":""?>/>

<tr>
<td> hello confirm email notification
<td> <br/><input type="checkbox" name="email_option2" value=ture <?=$email_option2?"checked":""?>/>

<tr>
<td> message email notification
<td> <br/><input type="checkbox" name="email_option3"  value=ture <?=$email_option3?"checked":""?>/>
<tr>

<td> new friend email notification
<td> <br/><input type="checkbox" name="email_option4"  value=ture <?=$email_option4?"checked":""?>/>
</table>


<br>
<label for="interest">Interests:</label>
<input type=text name="interest" value="<?=$rows->interest?>">
<br>
<label for="languages">Languages:</label>
<input type=text name="language" value="<?=$rows->language?>">
<br>
<label for="description">Description:</label>
<textarea rows="5" cols="20" name="description"><?=$rows->description?></textarea>
<br>
<input type=submit value="Submit Changes">
<?php echo form_close();?>
</div>
</div> 